Balancing power supply and demand

ABSTRACT

A method and apparatus to balance adapter power supply and computing device power demand. In one embodiment, power to/from battery pack(s) maybe controlled by adjusting the output voltage of the power adapter via the current input to the power adapter through a feedback pin to meet power demand of electrical loads. Another embodiment provides a way to adjust the activities of the electrical loads such that neither adapter power rating nor the electrical load power limit is exceeded while avoiding system shutdown.

This application is a continuation of U.S. patent application Ser. No.11/395,677, filed on Mar. 30, 2006, claiming the benefit of its earlierfiling date and incorporating it by reference herein.

BACKGROUND

Computer systems are becoming increasing pervasive in our society,including everything from small handheld electronic devices, such aspersonal data assistants and cellular phones, to application-specificelectronic devices, such as set-top boxes, digital cameras, and otherconsumer electronics, to medium-sized mobile systems such as notebook,sub-notebook, and tablet computers, to desktop systems, servers andworkstations. Computer systems typically include one or more processors.A processor manipulates and controls the flow of data in a computer byexecuting instructions.

To provide more powerful computer systems for consumers, processordesigners strive to continually increase the operating speed of theprocessor. Unfortunately, as processor speed increases, the powerconsumed by the processor tends to increase as well. Historically, thepower consumed by a computer system has been limited by two factors.First, as power consumption increases, the computer tends to run hotter,leading to thermal dissipation problems. Second, the power consumed by acomputer system may tax the limits of the power supply used to keep thesystem operational, reducing battery life in mobile systems anddiminishing reliability while increasing cost in larger systems.

For instance, power adapters generally consume more power than mostother individual components of the notebook computer. To operate theinternal components of notebook computers, external power adapters maybe utilized to charge battery pack(s) and to supply power to the rest ofthe internal components of the notebook computer simultaneously.However, in current designs power adapters may become overheated and/orhave functional failures, especially when used in a non-controlledenvironment.

The present invention addresses this and other issues associated withthe prior art.

BRIEF DESCRIPTION OF THE DRAWINGS

Various features of the invention will be apparent from the followingdescription of preferred embodiments as illustrated in the accompanyingdrawings, in which like reference numerals generally refer to the sameparts throughout the drawings. The drawings are not necessarily toscale, the emphasis instead being placed upon illustrating theprinciples of the inventions.

FIG. 1 illustrates a block diagram of a computer system in accordancewith an embodiment.

FIG. 2 illustrates a circuit schematic of a power system in accordanceto one embodiment.

FIG. 3 illustrates a circuit schematic of a power system in accordanceto a second embodiment.

DETAILED DESCRIPTION

[In the following description, for purposes of explanation and notlimitation, specific details are set forth such as particularstructures, architectures, interfaces, techniques, etc. in order toprovide a thorough understanding of the various aspects of theinvention. However, it will be apparent to those skilled in the arthaving the benefit of the present disclosure that the various aspects ofthe invention may be practiced in other examples that depart from thesespecific details. In certain instances, descriptions of well-knowndevices, circuits, and methods are omitted so as not to obscure thedescription of the present invention with unnecessary detail.

FIG. 1 illustrates a block diagram of a computer system 100 inaccordance with an embodiment. The computer system 100 includes acomputing device 102 and a power adapter 104 (e.g., to supply electricalpower to the computing device 102). The computing device 102 may be anysuitable computing device such as a laptop (or notebook) computer, apersonal digital assistant, a desktop computing device (e.g., aworkstation or a desktop computer), a rack-mounted computing device, andthe like.

Electrical power may be provided to various components of the computingdevice 102 (e.g., through a computing device power supply 106) from oneor more of the following sources: one or more battery packs, analternating current (AC) outlet (e.g., through a transformer and/oradaptor such as a power adapter 104), automotive power supplies,airplane power supplies, and the like. In one embodiment, the poweradapter 104 may transform the power supply source output (e.g., the ACoutlet voltage of about 110VAC to 240VAC) to a direct current (DC)voltage ranging between about 7VDC to 12.6VDC. Accordingly, the poweradapter 104 may be an AC/DC adapter.

The computing device 102 also includes one or more central processingunit(s) (CPUs) 108 coupled to a bus 110. In one embodiment, the CPU 108is one or more processors in the Pentium™ family of processors includingthe Pentium™ II processor family, Pentium™ III processors, Pentium™ IVprocessors available from Intel™. Corporation of Santa Clara, Calif.Alternatively, other CPUs may be used, such as Intel's Itanium™, XEON™,and Celeron™ processors. Also, one or more processors from othermanufactures may be utilized. Moreover, the processors may have a singleor multi core design.

A chipset 112 is also coupled to the bus 110. The chipset 112 includes amemory control hub (MCH) 114. The MCH 114 may include a memorycontroller 116 that is coupled to a main system memory 118. The mainsystem memory 118 stores data and sequences of instructions that areexecuted by the CPU 108, or any other device included in the system 100.In one embodiment, the main system memory 118 includes random accessmemory (RAM); however, the main system memory 118 may be implementedusing other memory types such as dynamic RAM (DRAM), synchronous DRAM(SDRAM), and the like. Additional devices may also be coupled to the bus110, such as multiple CPUs and/or multiple system memories.

The MCH 114 may also include a graphics interface 120 coupled to agraphics accelerator 122. In one embodiment, the graphics interface 120is coupled to the graphics accelerator 122 via an accelerated graphicsport (AGP). In an embodiment, a display (such as a flat panel display)may be coupled to the graphics interface 120 through, for example, asignal converter that translates a digital representation of an imagestored in a storage device such as video memory or system memory intodisplay signals that are interpreted and displayed by the display. Thedisplay signals produced by the display device may pass through variouscontrol devices before being interpreted by and subsequently displayedon the display.

A hub interface 124 couples the MCH 114 to an input/output control hub(ICH) 126. The ICH 126 provides an interface to input/output (I/O)devices coupled to the computer system 100. The ICH 126 may be coupledto a peripheral component interconnect (PCI) bus. Hence, the ICH 126includes a PCI bridge 128 that provides an interface to a PCI bus 130.The PCI bridge 128 provides a data path between the CPU 108 andperipheral devices. Additionally, other types of I/O interconnecttopologies may be utilized such as the PCI Express™ architecture,available through Intel™ Corporation of Santa Clara, Calif.

The PCI bus 130 may be coupled to an audio device 132 and one or moredisk drive(s) 134. Other devices may be coupled to the PCI bus 130. Inaddition, the CPU 108 and the MCH 114 may be combined to form a singlechip. Furthermore, the graphics accelerator 122 may be included withinthe MCH 114 in other embodiments.

Additionally, other peripherals coupled to the ICH 126 may include, invarious embodiments, integrated drive electronics (IDE) or smallcomputer system interface (SCSI) hard drive(s), universal serial bus(USB) port(s), a keyboard, a mouse, parallel port(s), serial port(s),floppy disk drive(s), digital output support (e.g., digital videointerface (DVI)), and the like. Hence, the computing device 102 mayinclude volatile and/or nonvolatile memory.

Currently, a computer system 100 may not know the power rating of theadapter 104. The output voltage of the adapter 104 is usually a fixedvoltage that is not directly controlled by any component in thecomputing device 102. Both an electrical load and a battery may demandpower from the adapter 104, both simultaneously and individually. Thepower adapter 104 may supply power to the electrical load through VDCand charge a battery through a battery charger. The battery chargerusually starts to charge Li-Ion batteries with a constant current.Usually, the power required by the battery does not depend on the powerconsumption of the electrical load. This may cause problems if theelectrical load does not obtain sufficient power from the adapter. Theadapter 104 may shut down due to excessive power demand if itsprotection mechanism functions properly. However, if protectionmechanisms do not function properly, the adapter may overheat, resultingin damages.

FIG. 2 illustrates a circuit schematic of a power system 200 inaccordance with one embodiment. The power system 200 includes the poweradapter 104 and the computing device power supply 106 discussed withreference to FIG. 1. In one embodiment, the power system 200 illustratesfurther details regarding the computing device power supply 106 of FIG.1 that also includes new elements (for example, power monitor module222) related to this invention.

The power system 200 includes electrical loads 202 coupled to thecomputing device power supply 106. The electrical loads 202 mayrepresent various components of the computing device 102 of FIG. 1 whichderive their power from the power adapter 104 (e.g., through thecomputing device power supply 106). For example, the electrical loads202 may represent power usage by items 108-134 discussed with referenceto FIG. 1 and a platform associated with those items. In one embodiment,one or more DC to DC voltage regulators may be utilized between thecomputing device power supply 106 and the electrical loads 202 (notshown), e.g., to regulate the voltage provided to the various componentsof the computing device 102. In another embodiment, the electrical loads202 may represent power usage of a platform.

As illustrated in FIG. 2, the computing device power supply 106 mayinclude a transistor 204 (Q_(AD1)) to switch the voltage potentialprovided by the power adapter 104. The negative voltage potentialterminal of power adapter 104 is also connected to the power system 200,and may be connected to ground. The battery charger in the computingdevice 102 of FIG. 1 is eliminated and integrated into the power adapter104 in FIG. 2. An additional feedback control line is added from theadapter 104 to ADFC pin 231 at the power monitor module 228. The outputvoltage of the adapter 104 is variable and directly controlled by thepower monitor module 228. The transistor 204 may be any suitabletransistor including a power transistor, such as a field effecttransistor (FET), a metal oxide silicon FET (MOSFET), and the like. Thegate of the transistor 204 (Q_(AD1)) is coupled to a selector 206(alternatively, power monitor 228) to control the flow of current fromthe power adapter 104 into the computing device power supply 106.

The selector 206 is also coupled to one or more battery packs (208 and210) and a power switch 212. The battery packs (208-210) may providereserve power for the electrical loads 202, e.g., when the power adapter104 is disconnected from the computing device power supply 106 and/or apower source (such as those discussed with reference to FIG. 1). Thepower switch 212 is coupled to the battery packs (208-210) andcontrolled by the selector 206 to switch power to and from the batterypacks (208-210) on or off. For example, to provide reserve power (fromthe battery packs 208 and 210) to the electrical loads 202, e.g.,through a resistor 214 (R.sub.CHR), the selector 206 may switch on thepower switch 212. Alternatively, when charging the battery packs(208-210), the selector 206 may turn on the power switch 212 to providepower to the battery packs (208-210) through the transistor 204(Q_(AD1)), a resistor 216 (R_(AD)), and the resistor 214 (R_(CHR)).

The power adapter 104 output current I_(AD) may be determined throughresistor R_(AD) 216. In the battery pack 208, 210 current I_(CHR) may bedetermined by resistor R_(CHR) 214. Thus, the current going to theelectrical loads 202 is I_(sys). Therefore, the power adapter 104 outputcurrent I_(AD) is equal to the total of the battery pack 208, 210current I_(CHR) and the electrical load 202 current I_(sys).

In this embodiment, the selector 206 may switch the flow of power fromthe power adapter 104 on or off based on the state of the battery packs(208-210) and/or the electrical loads. For example, if the battery packs(208-210) are fully charged and the electrical loads 202 are off (e.g.,the computing device 102 is shut down), the selector 206 may switch offthe flow of current from the power adapter 104 into the computing devicepower supply 106. Alternatively, if the battery packs (208-210) are tobe charged and the electrical loads 202 are off (e.g., the computingdevice 102 is shut down), the selector 206 may switch on the transistor204 and the power switch 212 to allow the flow of current from the poweradapter 104 into the battery packs (208-210). In this embodiment, thepower switch 212 may include a suitable transistor controlled by theselector 206 for each battery pack (208-210), including a powertransistor, such as a FET, a MOSFET, and the like.

Furthermore, the selector 206 may determine when to switch between aplurality of battery packs (208-210). For example, when a battery pack(208 or 210) is removed from the computing device power supply 106, theselector 206 may switch to any remaining battery packs. The power switch212 may be utilized to avoid safety issues (e.g., by having exposedbattery terminal pins) when a battery pack is removed.

The computing device power supply 106 also includes a system managementcontroller (SMC) 218 which is coupled to the battery packs (208-210) tomonitor the current flow into and out of the battery packs to determinethe charge level and capacity of each battery pack. In one embodiment,each battery pack may include a battery management unit (BMU) (220 and222) to monitor the current flow through the battery pack. The SMC 218is also coupled to the selector 206 to communicate the battery packcharge level and capacity information.

The selector 206 is coupled to an analog front end (AFE) (224 and 226)within each battery pack, e.g., to switch the flow of power between thebattery packs and the power switch 212. In an embodiment, the AFEs (224and 226) are coupled to the power switch through one or more suitabletransistors, including a power transistor, such as a FET, a MOSFET, andthe like.

The computing device power supply 106 additionally includes a powermonitor module 228 coupled to measure the voltage across the resistors214 and 216. In one embodiment, the resistors 214 and 216 have fixedvalues. The power monitor module 228 may be coupled to measure thecurrent flow through the resistors 214 and 216. For example, the powermonitor module 228 may monitor the total system power consumption (e.g.,by measuring the voltage across the resistor 216) and the battery packcharging power (e.g., by measuring the voltage across the resistor 214).

The power monitor module 228 is coupled to the power adapter 104 throughan adapter feedback control (ADFC) pin 231. The ADFC pin 231 may detectthe power rating of the power adapter 104 and control the output voltagethus output power of the adapter 104. The power to the battery packs208, 210 and the electrical loads 202 maybe controlled by adjusting thecontrol current to the power adapter 104 through the ADFC pin 231.

If additional power (higher I_(sys)) is desired by the electrical loads202 and battery packs 208, 210, the power monitor module 228 mayincrease power adapter 104 output voltage (higher I_(AD)) by adjustingthe current through the ADFC pin 231 until either the power demand ismet or power rating of the adapter 104 is reached, whichever occursfirst. When the electrical loads 202 power demand approaches the adapterpower rating (I_(sys) approaches I_(AD)), the charge current I_(CHR) maybe reduced, if necessary, such that the power limit of the adapter 104is not violated.

If the electrical loads 202 power demand (I_(sys)) increases further toexceed the power rating of the adapter 104 (I_(AD)), the adapter voltagemay be reduced such that the battery packs 208, 210 may be discharged tosupply power to the electrical loads 202 to meet the power demand of theelectrical loads 202. Therefore by controlling the output voltage of theadapter 104 to adjust the battery packs 208, 210 charging/dischargingactivities, it may be ensured that the power rating of the adapter 104is not exceeded, the power requirement of the electrical loads 202 aresatisfied and the battery pack 208, 210 are properly charged. Inaddition, there may be instances in which the power consumption of thecomputing device 102 may need to be modified in accordance with powersupplying capability of the power adapter 104 and the status of thebattery packs 208, 210.

FIG. 3 illustrates a circuit schematic of a power system 300 inaccordance with a second embodiment. The power system 300 includes thepower adapter 104 and the computing device power supply 106 discussedwith reference to FIG. 1. In one embodiment, the power system 300illustrates further details regarding the computing device power supply106 of FIG. 1.

In some instances, the power required by the electrical loads 202 maynot depend on either the adapter's 104 power capability or battery pack208, 210 charging power. For these instances, the power demand for theelectrical loads may need to be adjusted. The power adapter 104 and thebattery packs 208, 210, together, may be unable to satisfy power demandof the electrical loads 202. For instance, if the battery packs 208, 210power is depleted, or battery pack manufactures prefers not to interruptthe ongoing charging cycle of the battery packs 208, 210.

If the power demand of the electrical loads 202 is not managed, thepower adapter 104 may be forced to shut down due to over loading,thereby leading to a system 100 shut down. In addition, if the totalelectrical loads 202 power exceeds the design limit permitted by thermalor other constraints, this may lead to internal component failure, whichcould also force the power adapter 104 to shut down.

As shown in FIG. 3, the power monitor module 228 manages power demandfrom the electrical loads 202. The power information (P_(sys)) may beprovided by the power monitor 228 to the computing device power supply106. The system power limit (P_(sys), P_(BATT)) may be communicated tothe power monitor module 228 through the system management controller(SMC) 218. The system management controller 218 communicates the currentflow into and out of the battery packs 208, 210 to determine the chargelevel and capacity of each battery pack.

A request to adjust electrical loads 202 power may be conveyed through,for example, input/output hub (ICH) 126. ICH 126 is able to provide aninterface to I/O devices coupled to the computer system 100, such as theelectrical loads 202. The electrical loads 202 (CPU, MCH, graphics,display, etc. including ICH itself) may adjust their activities untilthe power supply and demand is balanced. It should be noted that otherdevices may be used to facilitate the activities of the electrical loads202. Accordingly, the embodiment provides a way to adjust the activitiesof the electrical loads 202 so that neither adapter power rating nor theelectrical load power limit is exceeded while avoiding system shut down.

Advantageously, this embodiment enables electrical load power managementby taking into consideration, power adapter's 104 power capability,battery packs 208, 210 status, and electrical loads 202 powerrequirement. This embodiment takes all three of these into considerationto balance power supply and demand on the electrical loads by adjustingthe electrical loads 202 activities in active states.

Reference in the specification to “one embodiment” or “an embodiment”means that a particular feature, structure, or characteristic describedin connection with the embodiment is included in at least animplementation. The appearances of the phrase “in one embodiment” invarious places in the specification may or may not be all referring tothe same embodiment.

Thus, although embodiments have been described in language specific tostructural features and/or methodological acts, it is to be understoodthat claimed subject matter may not be limited to the specific featuresor acts described. Rather, the specific features and acts are disclosedas sample forms of implementing the claimed subject matter.

What is claimed is:
 1. An apparatus, comprising: a feedback pin tocouple power monitor logic to a power adapter; and power managementlogic to control an output voltage of the power adapter to control thepower provided to one or more battery packs of the apparatus, tosimultaneously control the power provided to one or more computingdevice electrical loads coupled to the apparatus by adjusting a controlcurrent through the feedback pin, and to dynamically adjust the outputvoltage by adjusting a current until either a power demand is met or apower rating of the power adapter is reached, whichever occurs first. 2.The apparatus of claim 1, the power monitor logic to control the outputvoltage of the power adapter based on one or more of an output powerrating of the power adapter and based on the one or more computingdevice electric loads coupled to the apparatus.
 3. The apparatus ofclaim 1, the power monitor logic to control the charging/dischargingactivities of the one or more battery packs to supply power to the oneor more computing device electrical loads and simultaneously providepower from the power adapter to the one or more computing deviceelectrical loads.
 4. The apparatus of claim 1, the power monitor logicto switch a flow of power from the power adapter on or off based on astatus of the one or more battery packs or based on a status of the oneor more computing device electrical loads coupled to the apparatus. 5.The apparatus of claim 1, comprising: power switch logic coupled to theone or more battery packs; and selector logic to control the powerswitch logic to switch power to and from the one or more battery packson or off.
 6. The apparatus of claim 1, comprising: system managementcontroller logic to monitor current flow into and out of the one or morebattery packs and to determine a charge level and capacity of the one ormore battery packs.
 7. The apparatus of claim 1, the power monitor logicto variably and directly control the output voltage of the power adaptervia a control current through the feedback pin.
 8. The apparatus ofclaim 1, the power monitor logic to manage power demands of the one ormore computing device electrical loads coupled to the apparatus.
 9. Acontroller comprising: logic at least a portion of which is in hardware,the logic to: control an output voltage of a power adapter to controlthe charging/discharging activities of one or more battery packs of theapparatus, to simultaneously control the power provided to one or morecomputing device electrical loads coupled to the apparatus; and detect apower rating of the power adapter and dynamically adjust the outputvoltage by adjusting a control current through a feedback pin untileither a power demand is met or a power rating of the power adapter isreached, whichever occurs first.
 10. The controller of claim 9, thelogic to control the output voltage of the power adapter based on one ormore of an output power rating of the power adapter and based the on oneor more computing device electric loads coupled to the apparatus. 11.The controller of claim 9, the logic to control the charging/dischargingactivities of the one or more battery packs to supply power to the oneor more computing device electrical loads and simultaneously providepower from the power adapter to the one or more computing deviceelectrical loads.
 12. The controller of claim 9, the logic to switch aflow of power from the power adapter on or off based on a status of theone or more battery packs or based on a status of the one or morecomputing device electrical loads coupled to the apparatus.
 13. Thecontroller of claim 9, the logic to: switch power to and from the one ormore battery packs on or off.
 14. The controller of claim 9, the logicto: monitor current flow into and out of the one or more battery packs;and determine a charge level and capacity of the one or more batterypacks.
 15. The controller of claim 9, the logic to variably and directlycontrol the output voltage of the power adapter via a control currentthrough the feedback pin.
 16. The controller of claim 9, the logic tomanage power demands of the one or more computing device electricalloads coupled to the apparatus.
 17. An article comprising anon-transitory computer-readable storage medium containing a pluralityof instructions that in response to being executed enable a system to:control an output voltage of a power adapter to control thecharging/discharging activities of one or more battery packs of theapparatus, to simultaneously control the power provided to one or morecomputing device electrical loads coupled to the apparatus; and detect apower rating of the power adapter and dynamically adjust the outputvoltage by adjusting a control current through a feedback pin untileither a power demand is met or a power rating of the power adapter isreached, whichever occurs first.
 18. The article of claim 17, comprisinginstructions that if executed enable the system to: control the outputvoltage of the power adapter based on one or more of an output powerrating of the power adapter and based on the one or more computingdevice electric loads coupled to the apparatus.
 19. The article of claim17, comprising instructions that if executed enable the system to:control the charging/discharging activities of the one or more batterypacks to supply power to the one or more computing device electricalloads and simultaneously provide power from the power adapter to the oneor more computing device electrical loads.
 20. The article of claim 17,comprising instructions that if executed enable the system to: switch aflow of power from the power adapter on or off based on a status of theone or more battery packs or based on a status of the one or morecomputing device electrical loads coupled to the apparatus.
 21. Thearticle of claim 17, comprising instructions that if executed enable thesystem to: switch power to and from the one or more battery packs on oroff.
 22. The article of claim 17, comprising instructions that ifexecuted enable the system to: monitor current flow into and out of theone or more battery packs; and determine a charge level and capacity ofthe one or more battery packs.
 23. The article of claim 17, comprisinginstructions that if executed enable the system to: variably anddirectly control the output voltage of the power adapter via a controlcurrent through the feedback pin.
 24. The article of claim 17,comprising instructions that if executed enable the system to: managepower demands of the one or more computing device electrical loadscoupled to the apparatus.